package user;

import Opration.*;

import java.util.Scanner;

public class Aminder extends User {
    Scanner scanner = new Scanner(System.in);


    public Aminder(String name) {
        super(name);
        this.iOperation = new IOperation[]{
                new ExitOperation(),
                new AddOperation(),
                new DelOperation(),
                new FindOperation(),
                new ShowOperation(),
        };
    }

    public int menu(){
        System.out.println("管理员"+this.name+"打开菜单");
        System.out.println("******************");
        System.out.println("1、增加图书");
        System.out.println("2、删除图书");
        System.out.println("3、查找图书");
        System.out.println("4、显示图书");
        System.out.println("0、退出系统");
        System.out.println("*******************");
        int ret = scanner.nextInt();
        return ret;
    }
}
